Database reference guide |
HOME |
Wildcard OperatorsThe LIKE operator is used to select records that satisfy a specific pattern by using wildcard characters, for example: SELECT * FROM Customer WHERE Surname LIKE "SM*"; Will include all customers whose Surname begins SM, e.g. SMITH, SMYTH, SMALL etc.
In the example above, the third character can be any character. This will include all customers with surnames SMITH or SMYTH but not SMALL. The final form of wild card is the contains character %. If % is placed before the text of the data then all records that contain the text following the % will be included in the Domain. See following example:
Then the statement: SELECT * FROM Customer WHERE Address LIKE “%FLAT”; Will produce the following Domain:
|
Online & Instructor-Led Courses | Training Videos | Webinar Recordings | ![]() |
|
![]() |
© Alterian. All Rights Reserved. | Privacy Policy | Legal Notice | ![]() ![]() ![]() |